package com.edgar.download;

import android.os.Environment;

import static java.io.File.separator;

/**
 * Created by xiexiang on 2015/11/1.
 */
public class Constant {

    //---------目录名常量定义---------
    public static final String TAG = "Download";
    public static final String ROOT_DIR = Environment.getExternalStorageDirectory().toString();
    public static final String QIDA_ROOT_DIRNAME = "qida";
    public static final String DEFAULT_DOWNLOAD_DIR = ROOT_DIR+separator+QIDA_ROOT_DIRNAME+separator+"downloads";

    //---------下载状态码---------
    public static final short WAIT = 0x1;
    public static final short START = 0x2;  //开始下载
    public static final short DOWNLOADING = 0x3;  //下载中
    public static final short PAUSE = 0x4;
    public static final short FAIL = 0x5;
    public static final short SUCCESS = 0x6;

    //---------下载错误码---------
}